package com.fr.report;

import com.fr.base.core.ComparatorUtils;
import java.io.Serializable;

public class PaperSetting
  implements Serializable
{
  private PaperSize paperSize;
  private Margin margin;
  private int orientation = 0;

  public PaperSetting()
  {
    this.paperSize = new PaperSize();
    this.margin = new Margin(0.27D, 0.75D, 0.27D, 0.75D);
  }

  public PaperSetting(PaperSize paramPaperSize, Margin paramMargin, int paramInt)
  {
    this.paperSize = paramPaperSize;
    this.margin = paramMargin;
    this.orientation = paramInt;
  }

  public PaperSize getPaperSize()
  {
    return this.paperSize;
  }

  public void setPaperSize(PaperSize paramPaperSize)
  {
    this.paperSize = paramPaperSize;
  }

  public Margin getMargin()
  {
    return this.margin;
  }

  public void setMargin(Margin paramMargin)
  {
    this.margin = paramMargin;
  }

  public int getOrientation()
  {
    return this.orientation;
  }

  public void setOrientation(int paramInt)
  {
    this.orientation = paramInt;
  }

  public boolean equals(Object paramObject)
  {
    return ((paramObject instanceof PaperSetting) && (ComparatorUtils.equals(this.paperSize, ((PaperSetting)paramObject).paperSize)) && (ComparatorUtils.equals(this.margin, ((PaperSetting)paramObject).margin)) && (this.orientation == ((PaperSetting)paramObject).orientation));
  }
}